<section *ngIf="showForm">
    <nz-tabset [nzTabPosition]="nzTabPosition">
      <nz-tab nzTitle="房东信息">
        <div class="clearfix" nz-row>
          <nz-form-item style="margin-bottom: 0;" nz-col nzSpan="8">
            <nz-form-label [nzSpan]="8" style="width: 150px;" nzFor="email">照片</nz-form-label>
            <nz-form-control [nzSpan]="8">
          <nz-upload
            nzListType="picture-card"
            [(nzFileList)]="fileList"
            [nzShowUploadList]="{ showPreviewIcon: true, showRemoveIcon: false, showDownloadIcon: false}"
            [nzShowButton]="false"
            nzAccept="image/*"
            [nzPreview]="handlePreview"
          >
          </nz-upload>
        </nz-form-control>
      </nz-form-item >
          <nz-modal [nzVisible]="previewVisible" [nzContent]="modalContent" [nzFooter]="null" (nzOnCancel)="previewVisible = false">
            <ng-template #modalContent>
              <img [src]="previewImage" [ngStyle]="{ width: '100%' }" />
            </ng-template>
          </nz-modal>
        </div>
        <sf [formData]="param" [schema]="schema" (formSubmit)="editPerson($event)"></sf>
      </nz-tab>
      <nz-tab nzTitle="管理权限">
        <nz-input-group [nzSuffix]="suffixIcon">
          <input type="text" nz-input placeholder="Search" [(ngModel)]="searchValue" />
        </nz-input-group>
        <ng-template #suffixIcon>
          <i nz-icon nzType="search"></i>
        </ng-template>
        <nz-card style="height: 600px;overflow: auto;">
          <nz-spin  [nzSpinning]="isLoading">
          <nz-tree
            #tree
           [nzData]="houseList" 
           [nzSearchValue]="searchValue" 
           nzCheckable
           nzMultiple 
           nzAsyncData 
           [nzHideUnMatched]="true"
           (nzClick)="selectChage($event)"
           [nzCheckedKeys]="defaultCheckedKeys"
           > </nz-tree>
          </nz-spin>
        </nz-card>

        <nz-form-item style="text-align: center;margin-top: 20px;margin-bottom: 0;">
            <nz-form-control [nzOffset]="7" [nzSpan]="12">
              <button nz-button nzType="primary" (click)="formSubmit()">提交</button>
              <button nz-button (click)="resetForm($event)">取消</button>
            </nz-form-control>
        </nz-form-item>


      </nz-tab>
    </nz-tabset>
  </section>
  